package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 游记点评的对象
 */
@Getter@Setter
public class TravelReply extends BaseDomain{
    private Long travelId;//游记id

    private User author;//游记作者

    private User replier;//评论人

    private String content;//评论内容

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;//评论时间

    private Integer state = 1;//发布状态

    private boolean viewed;//查看状态
}